package com.sc.test.dagger2;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Shen Chao.
 * Created on 2018-06-03-003.
 */
@Module
public class SecondModule {
    @Provides
    @PerActivity
    public Cloth getBlueCloth() {
        Cloth cloth = new Cloth();
        cloth.setColor("blue");
        return cloth;
    }

//    @PerActivity
//    @Provides
//    public ClothHandler getClothHandler() {
//        return new ClothHandler();
//    }
}
